<?php

class home extends model {

    function __construct() {
        parent::__construct(Controller::$a_con);
    }

    function get_info_web() {
        return $this->get_ResultA_One($this->con->select_query('SELECT * FROM web_info', 'web_info'));
    }
    
    function login($email, $pass) {
        return $this->con->select_query('SELECT us_id,at_id,us_name FROM users WHERE us_email="' . $email . '" AND us_pass="' . md5($pass) . '"', 'login');
    }


}
